﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BDShop.Entities;
using BDShop.DAL;
using IsolationLevel = System.Transactions.IsolationLevel;

namespace BDShop.Business
{
    public class ConfigService
    {
        public static List<Config> GetListConfigCacheModel()
        {
            List<Config> lstConfig = new List<Config>();
            using (var context = new BDShopEntities(IsolationLevel.ReadUncommitted))
            {
                lstConfig = context.Configs.ToList();
            }

            return lstConfig;
        }
    }
}
